package com.java.common;


/**
 * <p>临时文件上传处理</p>
 *
 * 传真，邮件
 * 
 * @author $Author: qingfang.wu$
 * @version $Revision:1.0 ${Date}:Jul 12, 2011 9:02:44 AM $
 */
public class QuotationFileService extends FileStorage{

	//邮件上传实例
	public final static QuotationFileService Quotation = new QuotationFileService("quotation");
	
	//根路径
	private String file_path;
	
	//设置每种上传路径
	private QuotationFileService(String type){			    
		this.file_path = "upload/quotation/";
	}
	
	//获取根路径
	public String getBasePath() {
		return file_path;
	}
	
	public String getFilePath(String path) {
		return file_path+path;
	}
	
	public static void main(String[] args) {
		String name =  Quotation.getRootPath();
		System.out.println(name);
		
//		File img = new File("D:/image/17.jpg");
//		String path;
//		try {
//			path = TempFileService.Product.upload(img);
//			System.out.println(path);
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}		
	}
}
